{__NOLAYOUT__}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>跳转提示</title>

  {load href="__libs__/layui/layui.js"/}
  {load href="__libs__/layui/css/layui.css"/}
   <style>
       a{
         color: green;
       }

       a:hover{
        color: red;
       }

       .system-message{
          width: 400px;
          height: 200px;
          background: #fff; 
          margin:120px auto;
          position: relative;
          box-shadow: rgba(15, 66, 76, 0.25) 0px 0px 24px 0px;
       }
   </style>


</head>
<body>
    <div class="system-message">
       <header style="width: 100%;height: 40px;background: red;">
         <span style="color:#fff;font-weight: bold;position: absolute;left: 10px;top: 11px;">系统提示</span>
       </header>

    <?php switch ($code) {?>
       <?php case 1:?>

       <div style="width:80%;position: absolute;left: 70px;top: 60px;">
           <i class="layui-icon" style="color: red;font-size: 35px;">&#xe6af;</i>
           <span style="display: inline-block;width: 260px;height: 40px;position: absolute;left: 60px;line-height: 40px"><?php echo(strip_tags($msg));?></span>
       </div>

       <?php break;?>
       <?php case 0:?>

       <div style="width:80%;position: absolute;left: 70px;top: 60px;">
           <i class="layui-icon" style="color: red;font-size: 35px;">&#xe69c;</i>
           <span style="display: inline-block;width: 260px;height: 40px;position: absolute;left: 60px;line-height: 40px"><?php echo(strip_tags($msg));?></span>
       </div>
       <?php break;?>
     <?php } ?>

       <div style="width: 80%;position: absolute;left: 70px;top: 120px;">
          页面自动 <a id="href" href="<?php echo($url);?>">直接跳转</a> 等待时间： <b id="wait"> <?php echo($wait);?> </b>
       </div>
        
    </div>
    <script type="text/javascript">
        (function(){
            var wait = document.getElementById('wait'),
                href = document.getElementById('href').href;
            var interval = setInterval(function(){
                var time = --wait.innerHTML;
                if(time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                };
            }, 1000);
        })();
    </script>
</body>
</html>
